package com.yanqu.road.server.cmd.minewar.task;

import com.yanqu.road.entity.player.UserPatrons;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.player.MineWarMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class PatronsAbilityChangeTask extends GeneralTask {

	private GamePlayer player;

	private int mineType;

	private int pitId;

	private UserPatrons userPatrons;

	public PatronsAbilityChangeTask(GamePlayer player, int mineType, int pitId, UserPatrons userPatrons){
		this.player = player;
		this.mineType = mineType;
		this.pitId = pitId;
		this.userPatrons = userPatrons;
	}

	@Override
	public void doRun() {
		MineWarMgr.patronsAbilityChange(player, mineType, pitId, userPatrons);
	}
}
